package com.bl.student.dao.repository;

import com.bl.student.dao.model.TeacherTagEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by yujingyi on 2018/3/10.
 */
public interface TeacherTagRepository extends JpaRepository<TeacherTagEntity, String> {
    List<TeacherTagEntity> findByTeacherId(String teacherId);

    List<TeacherTagEntity> findByTagId(String tagId);

    void deleteByTeacherId(String teacherId);
}
